# 启动方式2：
import eventlet

from app import create_app

app = create_app(debug=True)
if __name__ == '__main__':
    SERVER_ADDRESS = ('127.0.0.1', 8000)
    sock = eventlet.listen(SERVER_ADDRESS)
    eventlet.wsgi.server(sock, app)
